package com.rupertjones.globalcron.domain;

import java.util.Date;

/**
 * <p>&copy Rupert Jones 2011</p>
 *
 * @author rup
 */
public class ExecutionContext {
    private JobDescriptor jobDescriptor;
    private long timeTaken;
    private String output;
    private boolean executedNormally;
    private Date lastFire;
    private Date nextFire;

    public void setJobDescriptor(JobDescriptor jobDescriptor) {
        this.jobDescriptor = jobDescriptor;
    }

    public void setTimeTaken(long timeTaken) {
        this.timeTaken = timeTaken;
    }

    public void setOutput(String output) {
        this.output = output;
    }

    public JobDescriptor getJobDescriptor() {
        return jobDescriptor;
    }

    public String getOutput() {
        return output;
    }

    public long getTimeTaken() {
        return timeTaken;
    }

    public void setExecutedNormally(boolean value) {
        this.executedNormally = value;
    }

    public boolean getExecutedNormally() {
        return executedNormally;
    }

    public Date getLastFire() {
        return lastFire;
    }

    public void setLastFire(Date lastFire) {
        this.lastFire = lastFire;
    }

    public Date getNextFire() {
        return nextFire;
    }

    public void setNextFire(Date nextFire) {
        this.nextFire = nextFire;
    }
}
